using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class TaskCategoriesExtend
{
		public static ResponseTaskCategoriesDto ToResponseDto(this TaskCategories entity)
{			return new ResponseTaskCategoriesDto
			{
				accountId = entity.TcAccountId,
				categoryId = entity.TcCategoryId,
				color = entity.TcColor,
				name = entity.TcName,
			};
		}
	}
}
